package generics;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 杨宇
 * @version 1.0 2016/11/2
 */
public class E24_FactoryCapture {
    public static Map<String, FactoryI<?>> factorys = new HashMap<>();

    public static void main(String[] args) {
        E24_FactoryCapture fc = new E24_FactoryCapture();

        factorys.put("Integer", new IntegerFactory());
        FactoryI<?> f = factorys.get("Integer");
        new Foo2<>(f, 4);
    }
}

